﻿using EquipmentModule.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace EquipmentModule.Contracts
{
    public interface IEquipmentHistoryService
    {
        IEnumerable<EquipmentHistoryItem> Index(DateTime start,DateTime end,string devId,string db=null);
        List<EquipmentHistoryItem> GetCurrentData(Guid id,string dbStr = null);
        void ImportHistoryData2DB(string fileName, Guid id, string dbStr = null);
        //大屏轮播设备数据
        EquipmentItem4Carousel Carousel4Equipment(Guid id, string dbStr = null);
        //大屏轮播设备Id
        List<Guid> Carousel4EquipmentId(string dbStr = null);
        /// <summary>
        /// 添加设备历史记录数据
        /// </summary>
        /// <param name="info"></param>
        /// <param name="dbStr"></param>
        void Add(EquipmentHistoryItem info,string dbStr=null);
        bool Exist(string deviceId);
    }
}
